<?php


namespace App\Controller\api\v1;

use App\Common\Res;
use App\Controller\AbstractController;
use App\Rpc\client\impl\DeviceImpl;
use Hyperf\Utils\ApplicationContext;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;

class GroupsController extends AbstractController
{
    use Res;

    /**
     * 获取群成员的列表
     * @return array
     * @throws ContainerExceptionInterface
     * @throws NotFoundExceptionInterface
     */
    public function getGroupMember(): array
    {
        $params = $this->request->all();

        $members['avatarUrl']  = "";


        for ($i = 0; $i < 20; $i++) {
            $members['remark']  = "备注".$i;
            $members['realName']  = "实名".$i;
            $members['nickName']  = "昵称".$i;
            $res['data']['members'][] = $members;
        }

        $res['data']['announcement'] = '最新公告';

        return $res;
    }







}